package model

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ AwMenuListsModel = (*customAwMenuListsModel)(nil)

type (
	// AwMenuListsModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAwMenuListsModel.
	AwMenuListsModel interface {
		awMenuListsModel
		withSession(session sqlx.Session) AwMenuListsModel
	}

	customAwMenuListsModel struct {
		*defaultAwMenuListsModel
	}
)

// NewAwMenuListsModel returns a model for the database table.
func NewAwMenuListsModel(conn sqlx.SqlConn) AwMenuListsModel {
	return &customAwMenuListsModel{
		defaultAwMenuListsModel: newAwMenuListsModel(conn),
	}
}

func (m *customAwMenuListsModel) withSession(session sqlx.Session) AwMenuListsModel {
	return NewAwMenuListsModel(sqlx.NewSqlConnFromSession(session))
}
